minios: reverse layering of xc vs minios fd close
authorKeir Fraser <keir@xen.org>
Fri, 3 Dec 2010 06:37:48 +0000 (06:37 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 3 Dec 2010 06:37:48 +0000 (06:37 +0000)
commitd5c277ab26f7fbb64b8b1d09b9dc328212cd2988
treea929a95e433cc1dc1b3f56043c95684421879331
parentbc20e3f30fbfc5cdebc0cd47d31abb77ad63c298
minios: reverse layering of xc vs minios fd close

Having minios close() call back into the libxc core close routines is
backwards and unexpected. On every other OS the libxc core close
routine calls close().

Export minios specific functions from the minios libxc code to
implement fd closing for each type of xc file handle and simply call
close() in the core close routine.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
extras/mini-os/lib/sys.c
tools/libxc/xc_minios.c